import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { SiteConfig } from './config.entity';
import { ConfigService } from './config.service';
import { ConfigController } from './config.controller';
import { ConfigViewController } from './config-view.controller';
import { AuthModule } from '../auth/auth.module';

@Module({
  imports: [TypeOrmModule.forFeature([SiteConfig]), AuthModule],
  providers: [ConfigService],
  controllers: [ConfigController, ConfigViewController],
  exports: [ConfigService],
})
export class ConfigModule {}